import { defineStore } from 'pinia';

export const useFilterStore = defineStore('filter', {
  state: () => ({
    filterParams: {}, // 临时存储跨页面传递的过滤参数
  }),
  actions: {
    setParams(params) {
      this.filterParams = params;
    },
    clearParams() {
      this.filterParams = {};
    },
  },
});
